package com.cnyz.vo;

import com.cnyz.base.BaseDto;
import com.cnyz.base.BaseVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Email;

@ApiModel(description = "登录数据返回对象")
@Data
public class LoginVo extends BaseVo {
    @ApiModelProperty(value = "返回token")
    String token;

    @ApiModelProperty(value = "用户名")
    String username;

    @ApiModelProperty(value="用户类型 (0:学生 1:老师)")
    Integer role;

    @ApiModelProperty(value = "邮箱")
    String email;
}


